package com.gupaoedu.task.pattern.proxy.jdk;

public class Stars implements IStars {

    private String name;

    public Stars(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void sing() {
        System.out.println(getName() + "唱了一首歌");
    }

    @Override
    public void dance() {
        System.out.println(getName() + "跳了一支舞");
    }
}
